﻿@model HNCSolutions.ViewModel.PhanMemViewModel

@{
    ViewBag.Title = "Cập Nhật Phần Mềm";    
}

@using (Html.BeginForm("Edit", "PhanMem", FormMethod.Post, new { id = "id-form" }))
{
    @Html.ValidationSummary(true)
    @Html.HiddenFor(model => model.PhanMem.Id)
    <div class="div_editor">
        <div class="span-3">
            @Html.LabelFor(model => model.PhanMem.TenPhanMem)
        </div>
        <div>
            @Html.TextBoxFor(model => model.PhanMem.TenPhanMem, new { @class = "inp-form" })
            @Html.ValidationMessageFor(model => model.PhanMem.TenPhanMem)
        </div>
    </div>    

    <div class="div_editor">
        <div class="span-3">
            @Html.LabelFor(model => model.PhanMem.Gia)
        </div>
        <div>
            @Html.TextBoxFor(model => model.PhanMem.Gia, new { @class = "inp-form" })
            @Html.ValidationMessageFor(model => model.PhanMem.Gia)
        </div>
    </div>    

    <div class="clearfix"></div>
    <div class="full div_editor">
        <ul class="tabs" data-persist="true">
            <li><a href="#view1">Giới thiệu</a></li>
            <li><a href="#view2">Tính năng</a></li>
            <li><a href="#view3">Yếu Cầu Hệ Thống</a></li>
        </ul>
        <div class="tabcontents">
            <div class="fix_tynymce">
                <div id="view1" class="editor-field">
                    @Html.TextAreaFor(model => model.PhanMem.GioiThieu)
                    @Html.ValidationMessageFor(model => model.PhanMem.GioiThieu)
                </div>
                <div id="view2" class="editor-field">
                    @Html.TextAreaFor(model => model.PhanMem.TinhNang)
                    @Html.ValidationMessageFor(model => model.PhanMem.TinhNang)
                </div>
                <div id="view3" class="editor-field">
                    @Html.TextAreaFor(model => model.PhanMem.YeuCauHeThong)
                    @Html.ValidationMessageFor(model => model.PhanMem.YeuCauHeThong)
                </div>
            </div>
        </div>
    </div>
    <p>
        <input type="submit" value="Lưu" class="button" />
    </p>   
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    <script src="~/Plugin/tabcontent/tabcontent.js" type="text/javascript"></script>
    <link href="~/Plugin/tabcontent/template1/tabcontent.css" rel="stylesheet" type="text/css" />
    <!-- Place inside the <head> of your HTML -->
    <script type="text/javascript" src="~/Plugin/tinymce/tinymce.min.js"></script>
    <script type="text/javascript" src="~/Scripts/tinymce.config.js"></script>
}
